<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box{
            width: 100px;
            height: 100px;
            border:solid 1px red;
            background-color: orange;
            border-radius: 50%;
            animation: alertnates 1s ease-in-out;
        }

        @keyframes alertnates{
            0%{margin-left: 0;}
            100%{margin-left: 200px;}
        }
    </style>
</head>
<body>
    <h1>Animation</h1>
    
    <h2>animation-fill-mode: none</h2>
    <div class="box" style="animation-fill-mode: none"></div>

    <h2>animation-fill-mode: forwards</h2>
    <div class="box" style="animation-fill-mode: forwards"></div>

    <h2>animation-fill-mode: backwards</h2>
    <div class="box" style="animation-fill-mode: backwards"></div>

    <h2>animation-fill-mode: both</h2>
    <div class="box" style="animation-fill-mode: both"></div>

    
</body>
</html>